package cn.edu.gzhu.workOrderManagement.service;

import cn.edu.gzhu.workOrderManagement.pojo.dto.workOrder.WorkOrderCreateDto;
import cn.edu.gzhu.workOrderManagement.pojo.dto.workOrder.WorkOrderListDto;
import cn.edu.gzhu.workOrderManagement.pojo.dto.workOrder.WorkOrderRepeatDto;
import cn.edu.gzhu.workOrderManagement.pojo.dto.workOrder.WorkOrderUpdateDto;
import cn.edu.gzhu.workOrderManagement.pojo.vo.WorkOrderDetailVo;
import cn.edu.gzhu.workOrderManagement.pojo.vo.WorkOrderVo;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

public interface WorkOrderService {

    /**
     * 批量创建工单
     * @param workOrderCreateDtos
     * @return
     */
    Boolean createWorkOrder(List<WorkOrderCreateDto> workOrderCreateDtos);

    /**
     * 更新工单
     * @param workOrderUpdateDto
     * @return
     */
    Boolean updateWorkOrder(WorkOrderUpdateDto workOrderUpdateDto);

    /**
     * 批量删除工单
     * @param uuids
     * @return
     */
    Boolean deleteWorkOrder(List<String> uuids);

    /**
     * 工单分页查询
     * @return
     */
    IPage<WorkOrderVo> listWorkOrder(WorkOrderListDto workOrderListDto);

    /**
     * 重诉工单
     * @param workOrderRepeatDto
     * @return
     */
    Boolean repeatWorkOrder(WorkOrderRepeatDto workOrderRepeatDto);
}
